﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using CPAScoringPerformanceTester.Models;

namespace CPAScoringPerformanceTester.TestTask
{
    public abstract class TestTaskBase
    {
        public const string ERROR_BAD_ACCOUNT = "User account authentication failed";
        public const string ERROR_TASK_NOT_SPECIFIED = "Task ID isn't specified";

        protected ServiceClient Client = null;
        public TestTaskBase NextTask { get; set; }
        public bool IsError { get; set; }
        public string Message { get; set; }

        public abstract bool Execute();

        public virtual void Setup()
        {
            IsError = false;
        }

        public virtual void CleanUp()
        { 
            
        }
    }
}
